package homework022;

import java.util.HashMap;

public class Goods {
    private String id;
    private String name;
    private Integer price;
    private HashMap<String, String> attrList;

    public Goods() {
    }

    public Goods(String id, String name, Integer price, HashMap<String, String> attrList) {
        this.id = id;
        this.name = name;
        this.price = price;
        this.attrList = attrList;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPrice() {
        return price;
    }

    public void setPrice(Integer price) {
        this.price = price;
    }

    public HashMap<String, String> getAttrList() {
        return attrList;
    }

    public void setAttrList(HashMap<String, String> attrList) {
        this.attrList = attrList;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", attrList=" + attrList +
                '}';
    }
}
